/**
 * 
 */
package guiyou.sw.agrinfo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;
import android.widget.Toast;

/**
 * @author Administrator
 *
 */
public class Tab2Activity extends Activity implements OnClickListener{

	private ImageView image01;
	private ImageView image02;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.tab2);
		
		image01 = (ImageView)findViewById(R.id.disclose);
		image02 = (ImageView)findViewById(R.id.complain);
	
		
		image01.setOnClickListener(this);
		image02.setOnClickListener(this);
	}
	public void onClick(View v) {
		// TODO Auto-generated method stub

		switch(v.getId()){
		case R.id.disclose:
			Intent i = new Intent();
			i.setClass(Tab2Activity.this, ShopNoticeListActivity.class);
			i.setFlags(102);
			startActivity(i);
			break;
		case R.id.complain:
//			Toast.makeText(this, R.string.test, Toast.LENGTH_SHORT).show();
			break;
		}
	}
}
